package com.sllp.C71S3TsllpShop.bean;

import java.sql.Timestamp;

public class Comment {


	@Override
	public String toString() {
		return "Comment [id=" + id + ", sendTime=" + sendTime + ", level=" + level + ", user=" + user + ", product="
				+ product + ", ordersItem=" + ordersItem + ", message=" + message + ", orderitem=" + orderitem
				+ ", user2=" + user2 + ", orderItem2=" + orderItem2 + "]";
	}

	public OrdersItem getOrderItem2() {
		return orderItem2;
	}

	public void setOrderItem2(OrdersItem orderItem2) {
		this.orderItem2 = orderItem2;
	}

	private Integer id;

    private Timestamp sendTime;

    private Integer level;

    private Integer user;

    private Integer product;
    
    private String ordersItem;

    private String message;
    
    private OrdersItem orderitem;
    
    private User user2;
   
    private OrdersItem orderItem2;

    public Comment(Integer id, Timestamp sendTime, Integer level, Integer user, Integer product, String ordersItem) {
        this.id = id;
        this.sendTime = sendTime;
        this.level = level;
        this.user = user;
        this.product = product;
        this.ordersItem = ordersItem;
    }

    public Comment(Integer id, Timestamp sendTime, Integer level, Integer user, Integer product, String ordersItem, String message) {
        this.id = id;
        this.sendTime = sendTime;
        this.level = level;
        this.user = user;
        this.product = product;
        this.ordersItem = ordersItem;
        this.message = message;
    }

    public Comment() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Timestamp getSendTime() {
        return sendTime;
    }

    public void setSendTime(Timestamp sendTime) {
        this.sendTime = sendTime;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getUser() {
        return user;
    }

    public void setUser(Integer user) {
        this.user = user;
    }

    public Integer getProduct() {
        return product;
    }

    public void setProduct(Integer product) {
        this.product = product;
    }

    public String getOrdersItem() {
        return ordersItem;
    }

    public void setOrdersItem(String ordersItem) {
        this.ordersItem = ordersItem == null ? null : ordersItem.trim();
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message == null ? null : message.trim();
    }

	

	
	public User getUser2() {
		return user2;
	}

	public void setUser2(User user2) {
		this.user2 = user2;
	}

	public OrdersItem getOrderitem() {
		return orderitem;
	}

	public void setOrderitem(OrdersItem orderitem) {
		this.orderitem = orderitem;
	}
	
}